package com.eva.dao.system.model;

import com.eva.framework.mp.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

import java.util.Date;

@Data
@Accessors(chain = true)
@SuperBuilder
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel("地区")
@TableName("`system_location`")
public class SystemLocation extends BaseModel {
    @TableField("`parent_id`")
    @ApiModelProperty(value="父级主键")
    private Integer parentId;

    @TableField("`short_name`")
    @ApiModelProperty(value="简称")
    private String shortName;

    @TableField("`name`")
    @ApiModelProperty(value="名称")
    private String name;

    @TableField("`full_name`")
    @ApiModelProperty(value="全称")
    private String fullName;

    @TableField("`level`")
    @ApiModelProperty(value="层级 1省 2市 3区县")
    private Byte level;

    @TableField("`pinyin`")
    @ApiModelProperty(value="拼音")
    private String pinyin;

    @TableField("`area_code`")
    @ApiModelProperty(value="区号")
    private String areaCode;

    @TableField("`postal_code`")
    @ApiModelProperty(value="邮编")
    private String postalCode;

    @TableField("`first_letter`")
    @ApiModelProperty(value="首字母")
    private String firstLetter;

    @TableField("`lng`")
    @ApiModelProperty(value="经度")
    private String lng;

    @TableField("`lat`")
    @ApiModelProperty(value="纬度")
    private String lat;

    @TableField("`disabled`")
    @ApiModelProperty(value="是否禁用")
    private Boolean disabled;

    @TableField(exist = false)
    private Integer createdBy;

    @TableField(exist = false)
    private Date createdAt;

    @TableField(exist = false)
    private Integer updatedBy;

    @TableField(exist = false)
    private Date updatedAt;

    @TableField(exist = false)
    private Boolean deleted;

}
